







<div class="x-body">
    <div class="layui-row">
        <form class="layui-form layui-col-md12 x-so search-form">
            <input class="layui-input"  autocomplete="off" placeholder="开始日" name="date1"  value="{:input('date1')}" id="start">
            <input class="layui-input"  autocomplete="off" placeholder="截止日" name="date2"  value="{:input('date2')}" id="end">
            <input type="text" name="search_data"  placeholder="用户名|UID" autocomplete="off" value="{:input('search_data')}"  class="layui-input">
            
           
    </div>
    
    <table class="layui-table x-admin">
        <thead>
        <tr>
            <th>
                序号
            </th>
            <th>用户名</th>
            <th>UID</th>
            <th>币种</th>
            <th>创建时间</th>
            <th>采集时间</th>
            <th>采集次数</th>
            <th>状态</th>
            <th>操作</th>
        </thead>
        {notempty name='list'}
        <tbody>
        {volist name='list' id='vo' key="k"}
        <tr>
            <td class="text-center">
                {$k}
            </td>
            <td class="text-center">{$vo.username}</td>
            <td class="text-center">{$vo.user_id}</td>
            <td class="text-center">{$vo.wallet_name}</td>
            <td class="text-center">{$vo.create_time|date='Y-m-d H:i:s',###}</td>
            <td class="text-center">{if condition="$vo.collect_time eq null"}----{else/}{$vo.collect_time|date='Y-m-d H:i:s',###}{/if}</td>
            <td class="text-center">{$vo.collect_count}</td>
            <td class="text-center">{if condition="$vo['status'] eq 0"}
                采集中
                {else/}
                {if condition="$vo['status'] eq 1"}
                采集成功
                {else/}
                采集失败
                {/if}
                {/if}</td>
            <td>{if condition="$vo['status'] eq 2"}<ob_link><a title="重新采集" class="ajax-get"  href="{:url('recollect_recharge', array('id' => $vo['id']))}">
                重新采集
            </a></ob_link>{else/}
                {/if}</td>

        </tr>
        {/volist}
        {else/}
        <tbody><tr class="odd"><td colspan="12" class="text-center" valign="top">{:config('empty_list_describe')}</td></tr></tbody>
        {/notempty}

        </tbody>
    </table>
    <div class="page">
        {notempty name='list'}   {$list->render()}{/notempty}
    </div>

</div>
<script>
    layui.use('laydate', function(){
        var laydate = layui.laydate;
        layer=layui.layer;
        //执行一个laydate实例
        laydate.render({
            elem: '#start' //指定元素
        });

        //执行一个laydate实例
        laydate.render({
            elem: '#end' //指定元素
        });
    });








    //导出功能
    $(".export").click(function(){

        window.location.href = searchFormUrl($(".export"));
    });
</script>

</body>

</html>




